]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Adjust URL check
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 25 Feb 2020 23:18:17 +0000 (00:18 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 25 Feb 2020 23:24:14 +0000 (00:24 +0100)
While the old merge request URLs still work, gitlab recently started
including an additional /- for merge requests.

Adjust the regex to account for that, so that simply copying the URL
from gitlab works again.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1048

.gitlab-ci/check-commit-log.sh

index cc3bcee602549c2ed956ce1b96eea15899ec389a..8d0e2ee039e3e4ac2ba13ad04c62a04252b3ae06 100755 (executable)
@@ -19,7 +19,7 @@ fi
 function commit_message_has_url() {
   commit=$1
   commit_message=$(git show -s --format='format:%b' $commit)
-  echo "$commit_message" | grep -qe "\($CI_MERGE_REQUEST_PROJECT_URL/\(issues\|merge_requests\)/[0-9]\+\|https://bugzilla.gnome.org/show_bug.cgi?id=[0-9]\+\)"
+  echo "$commit_message" | grep -qe "\($CI_MERGE_REQUEST_PROJECT_URL/\(-/\)\?\(issues\|merge_requests\)/[0-9]\+\|https://bugzilla.gnome.org/show_bug.cgi?id=[0-9]\+\)"
   return $?
 }